package com.wxzz.elearing.user.api.server;

import com.wxzz.elearing.user.service.IPlatformParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/platform-param-api")
public class PlatformParamServiceApi {

    @Autowired
    private IPlatformParamService platformParamService;

    /**
     * 根据key查询平台参数
     *
     * @param key
     * @return
     */
    @RequestMapping(value = "selectOne", method = RequestMethod.POST)
    public String selectOne(@RequestParam("key") String key) {
        return platformParamService.selectOne(key);
    }
}
